<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>龙蛙</title>

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- jqgrid-->
    <link href="/web/css/plugins/jqgrid/ui.jqgridffe4.css?0820"
          rel="stylesheet">

    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">

    <!-- <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script> -->
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form" style="margin-top:20px;">
                        <input type="hidden" th:value="${dcDish.companyId}" name="companyId" id="companyId"
                               class="form-control" required=""
                               aria-required="true" maxlength="20" minlength="1">
                        <input type="hidden" th:value="${dcDish.id}" name="id" id="id" class="form-control" required=""
                               aria-required="true" maxlength="20" minlength="1">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">菜名：</label>
                            <div class="col-sm-7">
                                <input type="text" th:value="${dcDish.name}" name="name" id="name" class="form-control"
                                       required=""
                                       aria-required="true" maxlength="20" minlength="1">
                            </div>
                            <div class="col-sm-3"></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">价格（元）：</label>
                            <div class="col-sm-7">
                                <input type="text" th:value="${dcDish.price}" name="price" id="price"
                                       class="form-control number"
                                       required="" aria-required="true" maxlength="10" minlength="1">
                            </div>
                            <div class="col-sm-3"></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述：</label>
                            <div class="col-sm-7">
                                <input type="text" th:value="${dcDish.remark}" name="remark" id="remark"
                                       class="form-control" required=""
                                       aria-required="true" maxlength="30" minlength="1">
                            </div>
                            <div class="col-sm-3"></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">菜品分类：</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="categoryId">
                                </select>
                            </div>
                            <div class="col-sm-6"></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图片路径：</label>
                            <div class="col-sm-4">
                                <input type="text" th:value="${dcDish.thum}" name="thum" id="thum"
                                       class="form-control thum" value="" required="" aria-required="true"
                                       maxlength="100" minlength="1">
                            </div>
                            <div class="col-sm-1">
                                <div class="id_img bod">
                                    <input type="hidden" name="imgIdBack"/>
                                    <!--<input type="file" id="file2" accept="image/*">-->
                                    <div class="weui-uploader__input-box">
                                        <input class="weui-uploader__input" type="file" id="file2"
                                               accept="image/png, image/jpeg, image/jpg, image/gif">
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-7">
                                <div class="dish_img">
                                </div>
                                <div class="col-sm-3"></div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <button id="submitForUpdate" class="btn btn-primary col-sm-1">保存</button>
                            <div class="col-sm-2"></div>
                            <div class="col-sm-2"></div>
                            <button type="reset" class="btn btn-primary col-sm-1">重置</button>
                            <div class="col-sm-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    /*<![CDATA[*/
    categoryIdChecked = [[${dcDish.categoryId}]];
    /*]]>*/
</script>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="/web/js/lrz.all.bundle.js"></script>
<script src="/web/js/jquery.form.js?v=3.51"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script src="/web/js/self/commons.js?v=1.0.0"></script>
<script src="/web/js/self/dc_dish_update.js?v=1.0.0"></script>
</body>
</html>
